#include "lib_MonitorDiskIo.h"
#include <unistd.h>
using namespace std;

int main(int argc, char *argv[])
{
    string dev_name = "sdd";
    MonitorDiskIo diskIo_impl(dev_name);
    sysDiskIo_t* sysDiskIo_data = nullptr;

    int count=10;
    while (count--)
    {
        sleep(1);
        sysDiskIo_data = diskIo_impl.update_diskIo();
        diskIo_impl.show_diskIoSpeed(sysDiskIo_data);
    }

    return 0;
}